cmake_minimum_required(VERSION 3.8)
project(string_replace)
string(REPLACE "Hello" "Hi" var1 "Hello World! Hello CMake!")
message(STATUS "var1 = ${var1}")
string(REPLACE "Hello" "Hi" var2 "Hello World! Hello CMake!" "Hello Again!")
message(STATUS "var2 = ${var2}")
